﻿// Example header text. Can be configured in the options.
using System;

namespace vtech_frameWorks.Library
{
    public class ClsString
    {
        /// <summary>
        /// Kiểu String
        /// </summary>
        public static string String
        {
            get
            {
                return String.Empty;
            }
        }

        /// <summary>
        /// So sanh 2 doi tuong
        /// </summary>
        /// <param name="s1"></param>
        /// <param name="s2"></param>
        /// <returns></returns>
        public static bool StringCompare(object s1, object s2)
        {
            if (s1 == null || s2 == null)
            {
                return false;
            }
            else
            {
                return s1.ToString().ToLower().Equals(s2.ToString().ToLower());
            }
        }

        /// <summary>
        /// So sanh hai chuoi
        /// </summary>
        /// <param name="s1"></param>
        /// <param name="s2"></param>
        /// <returns></returns>

        public static bool StringCompare(string s1, string s2)
        {
            if (s1 == null || s2 == null)
            {
                return false;
            }
            else
            {
                return s1.ToLower().Equals(s2.ToLower());
            }
        }
    }
}